package com.qw.qrweb.service.impl;

import com.qw.qrweb.mapper.SettingMapper;
import com.qw.qrweb.service.SettingService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class SettingServiceImpl implements SettingService {

    @Resource
    SettingMapper settingMapper;

    @Override
    public int updateTtile(String title) {
        return settingMapper.changeTitle(title);
    }

    @Override
    public String getTtile() {
        return settingMapper.getTitle().getValue();
    }


}
